import { CommonDataStructure } from "./interface";
import vtkPolyData from "@kitware/vtk.js/Common/DataModel/PolyData";
import vtkPoints from "@kitware/vtk.js/Common/Core/Points";
import vtkCellArray from "@kitware/vtk.js/Common/Core/CellArray";
import vtkDataArray from "@kitware/vtk.js/Common/Core/DataArray";

export class CommonLoader {
  private polyData = vtkPolyData.newInstance();
  outLinePolyData = vtkPolyData.newInstance();
  points = vtkPoints.newInstance();
  cells = vtkCellArray.newInstance();
  lines = vtkCellArray.newInstance();
  constructor(data: CommonDataStructure) {
    // console.log(1);
  }

  getOutputData() {
    return this.polyData;
  }
}
